package cn.redragon.soa.model.dto.stock;

import com.fasterxml.jackson.annotation.JsonIgnore;
import java.io.Serializable;
import java.util.List;
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor(access = AccessLevel.PRIVATE)
public class ReservationDTO implements Serializable {

    @JsonIgnore
    private String orderNumber;

    @JsonIgnore
    private String customerId;

    @JsonIgnore
    private String type;

    private Long ttl;

    @Valid
    @NotNull
    private List<StockReservedDTO> stocks;
}
